How To Use Conditional Statements in R